.test {
    display: flex;
    flex-direction: column;
    height: 100vh;

    .content {
        flex: 1; // 占满剩余空间
        overflow-y: auto;
        background-color: yellow;
    }
}